package cn.com.demo.autoconfigure.service;

import cn.com.demo.autoconfigure.properties.DemoProperties;

public class DemoService {
    private DemoProperties demoProperties;

    public DemoService(DemoProperties demoProperties) {
        this.demoProperties = demoProperties;
    }
    public void printProperties(){
        if ( demoProperties == null){
            System.out.println("null propertoes");
        }else {
            System.out.println("name: "+demoProperties.getName() +"\t age:"+demoProperties.getAge());
        }
    }
}
